{% extends BASE_TEMPLATE %}
{% load i18n %}
{% load url from future %}

{% block content %}

	{% block overview %}
		<h1>{{ cynosure.title }}</h1>
		<ul class="unstyled">
			{% for one in category.get_descendants %}
				<li>
					<a href="{% url "yummy:category_detail" one.path %}">
						{{ one.title }}
					</a>
				</li>
			{% endfor %}
		</ul>
	{% endblock %}

	<hr/>

	{% include "yummy/list_order_header.html" %}

	{% for one in object_list %}
		<div class="row">
			<a href="{% url "yummy:author_recipes" one.pk %}">
				<div class="span4">
					<h3>{{ one.username }}</h3>
				</div>
			</a>
			Počet receptů: {{ one.recipe_set.count }}
		</div>
	{% endfor %}

	{% if is_paginated %}
		<div class="pagination">
			<ul>
				{% for num in paginator.page_range %}
					{% if num == page_obj.number %}
						<li class="disabled">
							<span class="current page">{{ num }}</span>

							{% else %}
						<li>
						<a href="?page={{ num }}"> {{ num }}</a>
					{% endif %}

				</li>
				{% endfor %}
			</ul>
		</div>
	{% endif %}
{% endblock %}
